home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / plane arcade / planearcade.exe / tank3.bmp / rbspstruct.h < prev    next >
C/C++ Source or Header  |  2004-03-14  |  1KB  |  111 lines

  1.  
  2.  
  3. ///////////////////////////////
  4. //Struktury urcene na citanie//
  5. ///////////////////////////////
  6.  
  7. //
  8. //FACE Ütruktura 
  9. //
  10. struct RBSPFACE
  11. {
  12.     int Index;  //index
  13.  
  14.     VECTOR3D P[3]; //vertexi
  15.     VECTOR2D T1[3]; //texturove kordinaty
  16.     VECTOR2D T2[3]; //lightmap kordinaty
  17.     int Group;  //index skupiny
  18.     int Plane;  //index roviny
  19. };
  20.  
  21. //
  22. //GROUP Ütruktura 
  23. //
  24. struct RBSPGROUP
  25. {
  26.     int Index; 
  27.  
  28.     char Texture[80];
  29.     int BlendType;
  30.     int Type;
  31.     int CollisionType;
  32.     int LightMapIndex;
  33. };
  34.  
  35. //
  36. //RBSPPLANE Ütruktura
  37. //
  38. struct RBSPPLANE
  39. {
  40.     int Index;
  41.  
  42.     VECTOR3D Normal;
  43.     float D;
  44. };
  45.  
  46.  
  47. //
  48. //LIGHT Ütruktura
  49. //
  50. struct RBSPLIGHT
  51. {
  52.     int Index;
  53.     
  54.     VECTOR3D Pos;
  55.     COLOR Color;
  56.     float Intensity;
  57.     float Range;
  58.     bool Corona;
  59. };
  60.  
  61. //
  62. //NODE
  63. //
  64. struct RBSPNODE
  65. {
  66.     int Index;
  67.     
  68.       int BackIndex;
  69.       int FrontIndex;
  70.  
  71.     VECTOR3D Min;
  72.     VECTOR3D Max;
  73.     float Radius;
  74.     VECTOR3D Centre;
  75.  
  76.     bool Solid;
  77.  
  78.     bool Leaf;
  79.       int LeafIndex;
  80.  
  81.     int Root;
  82. };
  83.  
  84. //
  85. //BSPLEAF
  86. //
  87. struct RBSPLEAF
  88. {
  89.     int Index;
  90.  
  91.     int *FaceList;
  92.     int NumFaces;
  93.  
  94.     VECTOR3D Min;
  95.     VECTOR3D Max;
  96.     float Radius;
  97.     VECTOR3D Centre;
  98.  
  99.     int *VisibleLeafs;
  100.     int NumVisibleLeafs;
  101. };
  102.  
  103. //
  104. //LIGHTMAPA
  105. //
  106. struct RBSPLIGHTMAP
  107. {
  108.     int Index;
  109.     
  110.     byte Texel[256][256][3];
  111. };